package com.vecspace.database.model;

public class QuerySqlGroup {
    /** 分组名称，用于区分不同的分组字段*/
    private String groupName;

    /** 分组名称，用于区分不同的分组字段*/
    private String groupLabel;

    /** group by 字段*/
    private String groupColumns;

    /**聚合字段*/
    private String aggregateColumns;

    public final  static String DefaultGroupName = "_DEFAULT_";

    public QuerySqlGroup(String groupName, String groupLabel, String groupColumns, String aggregateColumns) {
        if(groupName == null || groupName.trim().length() == 0) {
            groupName = DefaultGroupName;
        }
        this.groupName = groupName;
        this.groupLabel = groupLabel;
        this.groupColumns = groupColumns;
        this.aggregateColumns = aggregateColumns;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupLabel() {
        return groupLabel;
    }

    public void setGroupLabel(String groupLabel) {
        this.groupLabel = groupLabel;
    }

    public String getGroupColumns() {
        return groupColumns;
    }

    public void setGroupColumns(String groupColumns) {
        this.groupColumns = groupColumns;
    }

    public String getAggregateColumns() {
        return aggregateColumns;
    }

    public void setAggregateColumns(String aggregateColumns) {
        this.aggregateColumns = aggregateColumns;
    }
}
